import SvgIcon from "@/components/AnSvg/index.vue";    //引用创建的组件
import Vue from "vue";

// 注册到全局
Vue.component("svg-icon", SvgIcon);

const requireAll = requireContext => requireContext.keys().map(requireContext);
const req = require.context("./svg", true, /\.svg$/);
requireAll(req);
